package com.zttek.photosShareProject.modules.service.manager;

import com.zttek.photosShareProject.modules.model.Admin;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 13296 on 2017/8/14.
 */
public interface IAdminService {
    List<Admin> selectAllAdmin()throws Exception;
    Admin selectAdminByAccount(String account)throws Exception;
    Admin selectAdminByID(Integer id)throws Exception;
    @Transactional
    void insertAdmin(Admin admin)throws Exception;
    void updateAdmin(Admin admin)throws Exception;
    void deleteAdminById(Integer id)throws Exception;
}
